<!--<?
include L::getHtmlTpl('/html/head.html');
?>-->
<div class="row">
    <div class="col col-md-offset-4 col-md-4">
        <form method="post" id="myform" class="form-horizontal" enctype="multipart/form-data">
            <div class="form-group">
                <label class="col-md-3 control-label">配置标识:</label>
                <div class="col-md-9 padding-left-0">
                    <!--<? if(!empty($this->type)){ ?>-->
                    <input type="text" class="form-control" name="type" _value="$this->type"  readonly/>
                    <!--<? }else{ ?>-->
                    <input type="text" class="form-control" name="type" />
                    <!--<? } ?>-->
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">配置说明:</label>
                <div class="col-md-9 padding-left-0">
                    <!--<? if(!empty($this->remark)){ ?>-->
                    <input type="text" class="form-control" name="remark" _value="$this->remark"/>
                    <!--<? }else{ ?>-->
                    <input type="text" class="form-control" name="remark" />
                    <!--<? } ?>-->
                </div>
            </div>
            <table width="100%" id="configData">
                <tr>
                    <td align="center"><label class="col-md-3 control-label">键</label></td>
                    <td align="center"><label class="col-md-3 control-label">值</label></td>
                </tr>
                <!--<? if(!empty($this->data)){
                    foreach ($this->data as $key => $value){
                    ?>-->
                <tr>
                    <td><input type="text" class="form-control" name="key[]" _value="$key"></td>
                    <td><input type="text" class="form-control" name="value[]" _value="$value"></td>
                </tr>
                <!--<? }} ?>-->
            </table>
            <input type="button" class="btn btn-primary btn-sm jsBatchChunk" onclick="configObj.addTabelTr()" value="新增">
        </form>
        <!--<? if(!empty($this->type)){ ?>-->
        <div style="text-align: center">
            <input type="button" class="btn btn-primary btn-sm jsBatchChunk" id="importCsv" value="导入配置 A列键B列值格式csv">
            <input type="button" class="btn btn-primary btn-sm jsBatchChunk" onclick="configObj.exportCsv()" value="导出配置">
        </div>
        <!--<? } ?>-->

    </div>
</div>
<script _src="ROOT_URL.'/view/js/handlebars.js'"></script>
<script _src="ROOT_URL.'/view/js/base.js'"></script>
<script _src="ROOT_URL.'/view/js/config.js?v=201802081'"></script>

